def outer_function():
    x=100
    print("x:", x)

    def inner_function():
        return x   # 访问外部函数的变量 x

    # print(inner_function)
    return inner_function
    # return


closure = outer_function()
aa=closure()*10
print(aa-10)
# print(closure(5))


# print(closure(5))  # 输出: 15
